<!--
 * @Author: jhw jiaxianshengye@gmail.com
 * @LastEditTime: 2025-07-30 19:33:56
 * @LastEditors: jhw
 * @Description: 文件描述
-->
<template>
  <div>
    <div class="w-100px h-80px bg-red-400 text-2xl font-bold" @click="handleExport">导出按钮</div>
  </div>
</template>

<script setup lang="ts">
import { exportExcel2 } from '@/utils/common'
import person from './export'
const initalColumns = [
  {
    title: '名字',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '年龄',
    dataIndex: 'age',
    key: 'age',
  },
]
const initList = [...person]

const handleExport = () => {
  exportExcel2(initalColumns, initList, '导出测试')
}
</script>

<style scoped></style>
